<template xmlns="">
	<div class="rank">
		<div class="s">
			<div class="head">
				<span>排行榜</span>
				<div class="box"></div>
				<button class="btn1" @click="go">BACK</button>
				<div class="btn2">
					<Icon type="md-search" size="19"/>
				</div>
				<div class="headrs" :style="bat">
					<List>
						<ListItem>
							<template slot="extra" >
								<button class="pos"  @click="fan">
									<Icon type="ios-arrow-back"/>
								</button>
							</template>
							<ListItemMeta/>
							<template slot="extra">
								<button @click="tiao">
									<Icon type="ios-arrow-forward"/>
								</button>
							</template>
						</ListItem>
					</List>
				</div>
			</div>
		</div>
		<div class="z">
			<div class="head">
				<span>
					热门排行榜
				</span>
			</div>
			<div class="search">
				<Input>
					<Button slot="append">
						<Icon type="ios-search" size="20"/>
					</Button>
				</Input>
			</div>
			<div class="shop">
				<List>
					<ListItem class="li">
						<ListItemMeta :avatar="orange" title="人气排行榜"/>
						<template slot="extra">
							<button @click="heima">
								<Icon type="ios-arrow-forward" size="32"/>
							</button>
						</template>
					</ListItem>
					<ListItem class="li2">
						<ListItemMeta :avatar="five" title="年度五星"/>
						<template slot="extra">
							<button @click="heima">
								<Icon type="ios-arrow-forward" size="32"/>
							</button>
						</template>
					</ListItem>
					<ListItem class="li">
						<ListItemMeta :avatar="egg" title="最火爆"/>
						<template slot="extra">
							<button @click="heima">
								<Icon type="ios-arrow-forward" size="32"/>
							</button>
						</template>
					</ListItem>
					<ListItem class="li2">
						<ListItemMeta :avatar="food" title="黑马餐厅"/>
						<template slot="extra">
							<button @click="heima">
								<Icon type="ios-arrow-forward" size="32"/>
							</button>
						</template>
					</ListItem>
					<ListItem class="li">
						<ListItemMeta :avatar="cook" title="最热卖"/>
						<template slot="extra">
							<button @click="heima">
								<Icon type="ios-arrow-forward" size="32"/>
							</button>
						</template>
					</ListItem>
					<ListItem class="li2">
						<ListItemMeta :avatar="cake" title="食神推荐"/>
						<template slot="extra">
							<button @click="heima">
								<Icon type="ios-arrow-forward" size="32"/>
							</button>
						</template>
					</ListItem>
					<ListItem class="li">
						<ListItemMeta :avatar="orange" title="最土豪"/>
						<template slot="extra">
							<button @click="heima">
								<Icon type="ios-arrow-forward" size="32"/>
							</button>
						</template>
					</ListItem>
				</List>
			</div>
		</div>
		<div class="foot">
			<div class="btn3" v-if="Ic">
				<div class="btn4">
					<button>
						<Icon type="md-settings" size="35"/>
					</button>
				</div>
				<div class="btn">
					<button>
						<Icon type="md-person" size="35"/>
					</button>
				</div>
				<div class="btn4">
					<button>
						<Icon type="ios-reverse-camera" size="35"/>
					</button>
				</div>
			</div>
			<button class="btn7" :style="btn" @click="info"></button>
		</div>
	</div>
</template>

<script>
	export default {
		name: "Discount",
		data() {
			return {
				btn: "background-image: url('" + require("../../assets/3m.png") + "')",
				Ic: false,
				bat: "background-image: url('" + require("../../assets/0m.png") + "')",
				orange: require("../../assets/or.png"),
				five: require("../../assets/five.png"),
				egg: require("../../assets/egg.png"),
				food: require("../../assets/food.png"),
				cook: require("../../assets/cook.png"),
				cake: require("../../assets/ff.png"),
				back: ''
			}
		},
		methods: {
			info() {
				if (this.Ic) {
					this.Ic = false
				} else {
					this.Ic = true
				}
			},
			go() {
				return this.$router.push('/users/index')
			},
			tiao() {
				return this.$router.push('/users/shoping')
			},
			fan() {
				return this.$router.push('/users/hot')
			},
			heima() {
				return this.$router.push('/users/heima')
			}
		}
	}
</script>
<style lang="less">
	.rank {
		max-width: 1024px;
		max-height: 1366px;
		margin: auto;
		.s {
			width: 100%;
			height: 146px;
			background-color: white;

			.headrs {
				width: 100%;
				height: 111px;
				background-repeat: no-repeat;
				background-size: 230px;
				background-position: 50%;
				.ivu-list-item{
					padding-top: 35px;
				}
				.pos{
					position: absolute;
					left: 0;
				}
				button{
					background:white;
					border: 0px;
					color: #FA4242;
				}
			}
		}

		.ivu-input-group-append {
			padding: 0px;
			border: 0px;
		}

		.ivu-input {
			height: 25px;
		}

		.ivu-avatar {
			height: 44px;
			width: 50px;
		}
		.ivu-list-item-meta-avatar{
			margin-left: 16px;
		}

		.li{
			.ivu-list-item-meta-title{
				color: white;
				margin-top: 3%;
			}
			background-color: #FE7676;
			button{
				width:50px;
				height: 55px;
				border: 0px;
				background-color:#FE7676 ;
				color: white;
			}
		}
		.li2{
			height: 100%;
			.ivu-list-item-meta-title{
				color:  #FE7676;
				margin-top: 3%;
			}
			background-color: white;
			button{
				width:50px;
				height: 55px;
				border: 0px;
				background-color:white ;
				color:#FE7676;
			}
		}
		.ivu-list-items{
			height: 80%;
		}
		.ivu-list-item {
			padding: 0;
			border: 0px;
			img {
				height: 44px;
				width: 44px;
			}
		}

		.z {
			width: 100%;
			height: 486px;

			.search {
				margin: 10px 4%;
				width: 92%;
				height: 30px;
				background-color: #FA4242;
				padding: 1px 2%;

				input {
					border-radius: 0px;
				}

				button {
					background-color: #FA4242;
					border-radius: 0px;
					color: white;
					height: 25px;
					padding-top: 0;
					margin: 0px;
				}
			}
		}

		.z > .head {
			padding: 0;
		}

		.x {
			width: 100%;
			height: 246px;

			.head {
				padding: 0;
			}

			.fol {
				height: 211px;
				width: 100%;

				.img2 {
					width: 100%;
					height: 49%;
					margin: 1% 0;
					float: left;
					border: 1px solid #F0F0F0;
					background-size: 100px;
					background-repeat: no-repeat;
					background-position: center;
				}

				.img1 {
					border: 1px solid #F0F0F0;
					width: 32%;
					height: 100%;
					margin-left: 1%;
					float: left;
					background-size: 20px;
				}

				overflow: auto;
			}
		}

		.foot {
			height: 35px;
			color: #FEFE00;
			width: 100%;
			background: #FA4242;
			font-size: 22px;
			text-align: center;
			line-height: 1.5;
			position: relative;

			.btn3 {
				margin: auto;
				margin-top: -90px;
				width: 50%;
				height: 125px;
				background-color: rgba(0, 0, 0, 0.5);
				float: left;
				margin-left: 25%;
				/*clear: both;*/
				border-radius: 50%;

				.btn4 {
					width: 33%;
					height: 75px;
					float: left;
					margin-top: 35px;

				}

				button {
					width: 80%;
					height: 50px;
					border-radius: 50%;
					line-height: 0px;
					background-color: white;
					border: 5px solid #FA4242;
					color: #FA4242;
				}

				.btn {
					margin-top: 10px;
					width: 33%;
					height: 75px;
					float: left;
				}
			}

			.btn7 {
				width: 60px;
				height: 60px;
				position: absolute;
				left: 42%;
				top: -25px;
				border-radius: 50%;
				text-align: center;
				border: 0;
				background-repeat: no-repeat;
				background-position: 55%;
				background-size: 73px 75px;
			}
		}

		.head {
			height: 35px;
			color: white;
			width: 100%;
			background: #FA4242;
			font-size: 22px;
			text-align: center;
			padding-right: 10px;
			line-height: 1.5;
			position: relative;
		}

		.head > .btn2 {
			height: 25px;
			width: 25px;
			float: right;
			margin-top: 5px;
			text-align: center;
			padding-top: 3px;
			line-height: 0px;
			background-color: white;
			color: #FA4242;
			border-radius: 5px;
		}

		.box {
			width: 0;
			height: 0;
			margin-top: 7px;
			float: left;
			border-top: 11px solid transparent;
			border-bottom: 11px solid transparent;
			border-left: 11px solid transparent;
			border-right: 11px solid white;
		}

		.clear {
			clear: both;
		}

		.btn1 {
			background: white;
			font-size: 10px;
			margin-top: 7px;
			margin-left: -1px;
			color: #FA4242;
			height: 22px;
			padding: 0px 5px;
			border: 1px aliceblue solid;
			border-radius: 10%;
			cursor: pointer;
			float: left;
		}
	}

</style>